package com.lord.exception;

import com.lord.enums.ResultEnum;

/**
 * @Description 微信自定义异常信息封装
 * @author WangShiCong
 * @since 2017-4-14
 */
public class WeChatException extends RuntimeException{
	
	private static final long serialVersionUID = -1810837745386456279L;
	
	private Integer code;

	public WeChatException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}
	
}
